<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0" />
<title>资助人名单</title>
<%@ include file="../common/_head_include.jsp" %>

<style>
#pagingNav span { margin:0px 3px 0px 3px; padding: 0px 3px 0px 3px; }
.clickable { cursor:pointer; }

</style>

</head>
<body>
<%@ include file="../common/_page_header.jsp" %>

<div id="g_content"><!-- do NOT change it. It's part of the global page structure. -->

<%@ include file="../common/_page_menubar.jsp" %>

<div id="g_workspace"><!-- do NOT change it. It's part of the global page structure. -->

<h3 style="display:inline">资助人名单</h3>
<br/><br/>
<input type="text" name="keyword" id="keyword" placeholder="按资助人姓名、昵称、电话号码、微信号码查找"/>
<input type="hidden" id="page" />
<input type="hidden" id="limit" />

<input type="button" id="btnFilter" value="筛选"/>

<span id="bthAdd" class="clickable">登记新资助人</span>

<table id="tableSponsors" class="simpleDataGrid">
	<thead><tr><th>编号</th><th>姓名</th><th>昵称</th><th>性别</th><th>所在地区</th><th>电话</th><th>微信</th><th>操作</th></tr></thead>
	<tbody>
	</tbody>
</table>
<br/>
<span id="txtCountSummary"></span>
<span id="pagingNav" style="margin-left:30px;"></span>
<br/>

<p id="txtMessage"></p>
<br/>

<div id="sponsorDialog" title="资助人信息" class="dialog" style="display:none;">
	<input type="hidden" name="id" id="id" />
	<br/>
	<label for="name">姓名：</label>
	<input type="text" name="name" id="name"> &nbsp; <input type="checkbox" id="anonymous" value="true"/>匿名<br/>
	<label>昵称：</label>
	<input type="text" id="nickname"/><br/>
	<label for="gender">性别：</label>
	<select name="gender" id="gender">
		<option value="male">男</option>
		<option value="female">女</option>
		<option value="unknown">未知</option>
	</select><br/><br/>
	
	<label for="type">类别：</label>
	<select name="type" id="type">
		<option value="person">个人</option>
		<option value="org">机构</option>
		<option value="unknown">未知</option>
	</select><br/>
	<label>地区：</label>
	<input type="text" id="area"/><br/><br/>
	
	<label for="contactPhone">电话：</label>
	<input type="text" name="contactPhone" id="contactPhone" size="36"><br/>
	<label for="contactEmail">邮箱：</label>
	<input type="text" name="contactEmail" id="contactEmail" size="36"><br/>
	<label for="contactWechat">微信：</label>
	<input type="text" name="contactWechat" id="contactWechat" size="36"><br/>
	<label for="contactAddress">地址：</label>
	<input type="text" name="contactAddress" id="contactAddress" size="36"><br/>
	<label for="contactOther">其他：</label>
	<input type="text" name="contactOther" id="contactOther" size="36"><br/>
	<label for="remark">备注：</label>
	<textarea name="remark" id="remark" rows="5" cols="60"></textarea>
</div>


<div id="detailsDialog" title="资助人信息和捐助记录" class="dialog" style="display:none;">
<div id="sonsporInfo"></div>
<h4>资助历史</h4>
<table id="fundHistoryTable" class="simpleDataGrid">
<thead>
<tr><th>学期</th><th>项目</th><th>学生</th><th>年级</th><th>资助状态</th><th>金额</th><th>捐款</th><th>收据</th><th>小结</th><th>备注</th>
</tr></thead>
<tbody></tbody>
</table>
</div>

<script type="text/javascript" src="<%=request.getContextPath() %>/js/aid/sponsor_list.js"></script>

</div>
</div>
<%@ include file="../common/_page_footer.jsp" %>
</body>
</html>